package cn.daichi.rabbitdemo.direct;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectReceiver {

    @RabbitListener(queues = RabbitDirectConfig.DIRECTNAME)
    public void handler1(String msg) {
        System.out.println("DirectReceiver:" + msg);
    }

}
